{% set clazz = "success" %}
{% set title = "兑换成功" %}
{% extends './modules/common/templates/main.html' %}
{% block style %}
  <link rel="stylesheet" type="text/css" href="{{ '/static/css/integral.css'|version }}" />
{% endblock %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1 class="title">{{ title }}</h1>
    </header>
  {% endif %}
  <section>
    <div class="summary text-center">
      <img class="center-block figure" src="http://7xjyap.com2.z0.glb.qiniucdn.com/image-627c7da8-f62c-4278-a4b5-6f5baf17a8ba.png" />
      <h3>兑换成功 <i class="icon text-orange">&#xe600;</i></h3>
      <p class="text-sm text-gray">如有疑问，请致电：<a class="text-gray" href="tel:4000818181">4000818181</a></p>
    </div>
    {% if entity.goodsType === 'FLOW' %}
      <div class="list">
        <div class="item">
          <span>充值号码：</span>
          <span class="text text-right">{{ entity.consigneeMobile }}</span>
        </div>
        <div class="item">
          <span>花费积分：</span>
          <span class="text text-right text-orange">{{ entity.consumeIntegral }}积分</span>
        </div>
        {% if entity.ticketCode %}
          <div class="item">
            <span>券　　号：</span>
            <span class="text text-right">{{ entity.ticketCode }}</span>
          </div>
        {% endif %}
        <div class="item">
          <span>订单编号：</span>
          <span class="text text-right">{{ entity.orderCode }}</span>
        </div>
      </div>
      {% elif entity.goodsType === 'ENTITY' %}
      <div class="list">
        <div class="item">
          <span>{{ entity.consignee }}</span>
          <span class="text text-right">{{ entity.consigneeMobile }}</span>
        </div>
      </div>
    {% endif %}
    <div class="hspace vspace">
      <a class="button warning" href="/integral/orders">查看我的兑换</a>
    </div>
    <div class="hspace vspace">
      <a class="button default" href="/integral">返回积分商城</a>
    </div>
  </section>
{% endblock %}
{% block script %}{% endblock %}